package com.silence.basic_learn;
//老师业务处理
public class TeacherOperator {
    private Teacher teacher;
    public TeacherOperator(Teacher teacher){
        this.teacher = teacher;
    }

    public void printPass(){
        if(teacher.getWork()>=60){
            System.out.println(teacher.getName()+"合格");
        }else{
            System.out.println(teacher.getName()+"不合格");
        }
    }
}
